﻿using System;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using Write.NET.WebUI.Controllers;
using System.Web.Mvc;

namespace Write.NET.WebUI.Tests.Controllers
{
    [TestClass]
    public class HomeControllerTests
    {
        private HomeController _homeController;

        [TestInitialize]
        public void SetUp()
        {
            _homeController = new HomeController();
        }

        [TestMethod]
        public void HomeController_Exists()
        {
            Assert.IsNotNull(_homeController);
        }

        #region Index Method

        [TestMethod]
        public void HomeController_Index_ReturnsView()
        {
            Assert.IsTrue(_homeController.Index() is ViewResult);
        }

        #endregion
    }
}
